package cn.iocoder.yudao.module.expert.controller.admin.projectinfo.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 项目Excel 导入 VO
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = false) // 设置 chain = false，避免导入有问题
public class ProjectInfoImportExcelVO {

    @Schema(description = "项目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("项目名称")
    private String projectName;

    @Schema(description = "项目单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("项目单位")
    private String projectUnit;

    @Schema(description = "联系人")
    @ExcelProperty("联系人")
    private String projectContacts;

    @Schema(description = "联系人电话")
    @ExcelProperty("联系人电话")
    private String projectPhone;

    @Schema(description = "专家库")
    @ExcelProperty("专家库")
    private String projectMajor;

    @Schema(description = "专业")
    @ExcelProperty("专业")
    private String major;

    @Schema(description = "项目时间")
    @ExcelProperty("项目时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime projectTime;

    @Schema(description = "项目地址")
    @ExcelProperty("项目地址")
    private String projectAddress;

    @Schema(description = "项目金额")
    @ExcelProperty("项目金额")
    private String projectAmount;

    @Schema(description = "项目招标时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("项目招标时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime projectTendersTime;

    @Schema(description = "备注", example = "随便")
    @ExcelProperty("备注")
    private String remark;

}